---@class Battle.SkillEventComponent:Battle.SkillComponent
local SkillEventComponent = Battle.CreateClass("SkillEventComponent",Battle.SkillComponent)
Battle.SkillEventComponent = SkillEventComponent

function SkillEventComponent:OnCreate()
    self:RegUpdate(true)
end
function SkillEventComponent:SetData(eventName)
    self.eventName = eventName
end
function SkillEventComponent:OnExecute()
    self.skill:AnimationEvent(self.eventName)
end
